<!DOCTYPE html>
<!-- saved from url=(0056)http://startbootstrap.com/templates/simple-sidebar.html# -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Panel</title>
<script src="<?php echo base_url();?>js/chart.js"></script>
<?php $this->load->view('panel_head');?>
</head>

<body onload="startTime()">
<?php $this->load->view('panel_header');?>
<div style="height:46px;"></div>
<div id="wrapper"> 
  
  <!-- Sidebar -->
  <div id="sidebar-wrapper">
    <?php $this->load->view('panel_sidebar');?>
  </div>
  
  <!-- Page content -->
  <div id="page-content-wrapper">
    <div class="content-header">
      <h1><span class="glyphicon glyphicon-user"></span>&nbsp;Member Profile</h1>
    </div>
    <!-- Keep all page content within the page-content inset div! -->
    
    <div class="page-content inset">
      <div class="panel panel-default">
        <div class="panel-body">
          <div align="center" style="margin:1.2em 0	;">
          <?php if(@$member[0]['mem_image'] == '') { ?>
           <img data-src="holder.js/250x250">
           <?php } else { ?>
          <img src="<?php echo base_url();?>uploads/<?php echo @$member[0]['mem_image']; ?>" width="250em"></img>
          <?php } ?>
          </div>
          <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>Username</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <div class="col-md-8">   <h5><?php echo @$member[0]['mem_name']; ?> (<?php if($member[0]['mem_type'] == 0){ echo "Member"; } else if ($member[0]['mem_type'] == 1) { echo "Moderator"; } else if($member[0]['mem_type']== 2) { echo "Administrator"; } else if($member[0]['mem_type'] == 3) { echo "Banned"; }?>)</h5></div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
          <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>E-mail</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <div class="col-md-8">
              <h5><?php echo @$member[0]['mem_mail']; ?><font size="-1"></font></h5>
            </div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
          <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>First Name</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <div class="col-md-8">
              <h5><?php echo @$member[0]['mem_fname']; ?><font size="-1"></font></h5>
            </div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
          <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>Last Name</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <div class="col-md-8">
               <h5><?php echo @$member[0]['mem_lname'] ?><font size="-1"></font></h5>
            </div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
          <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>Date of Birth</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <?php
				$month_arr = array(
					'00' => "-",
					'01' => "January",
					'02' => "February",
					'03' => "March",
					'04' => "April",
					'05' => "May",
					'06' => "June",
					'07' => "July",
					'08' => "August",
					'09' => "September",
					'10' => "October",
					'11' => "November",
					'12' => "December"
				);
			?>
            
            <?php @$around_date = split('-',@$member[0]['mem_birth']);?>
            
            <div class="col-md-8">
               <h5>
               <?php if($around_date[2] == '0' && $around_date[0] == '0000') { ?>
               		<?php echo '-'; ?>
               <?php } else { ?>
			  		<?php echo $around_date[2]; ?> <?php echo $month_arr[@$around_date[1]]?> <?php echo $around_date[0]; ?>
               <?php } ?>
               </h5>
            </div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
           <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>Address</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <div class="col-md-8">
               <h5><?php echo @$member[0]['mem_address']; ?><font size="-1"></font></h5>
            </div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
          <div class="row" style="margin-bottom:1.5em;">
            <div class="col-md-4">
              <h5><strong>Telephone Number</strong></h5>
            </div>
            <!-- <div class="col-md-4"> -->
            <div class="col-md-8">
               <h5><?php echo @$member[0]['mem_tell']; ?><font size="-1"></font></h5>
            </div>
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
     
             
         
         
          
           <div class="row">
            <div class="col-md-12" align="center">
            <a href="<?php echo base_url();?>index.php/pmember/update/<?php echo $this->uri->segment(3);?>">
            <button type="button" class="btn btn-primary">Edit Your Profile</button>
            </a>
            </div>
            <!-- <div class="col-md-4"> -->
           
            <!-- <div class="col-md-8"> --> 
          </div>
          <!-- <div class="row"> -->
          
          
        </div>
        <!-- <div class="panel-body"> --> 
      </div>
      <!-- <div class="panel panel-default"> --> 
    </div>
    <!-- <div class="page-content inset"> --> 
    
  </div>
  <!--  <div id="page-content-wrapper"> --> 
  
</div>
<!-- <div id="wrapper"> --> 




<!-- Custom JavaScript for the Menu Toggle --> 
<script>
    $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("active");
    });
</script> 
<script>
$('#select-all').click(function(event) {   
    if(this.checked) {
        // Iterate each checkbox
        $(':checkbox').each(function() {
            this.checked = true;                        
        });
    }else{
		$(':checkbox').each(function() {
			this.checked = false;
		});
	}
});
</script>
</body>
</html>